package com.kursusprogramming.contoh;

public class KonversiBilangan2 {
	public static void main(String[] args) {
		System.out.println(Integer.toHexString(16));
		System.out.println(Integer.toHexString(10));
		System.out.println(Integer.toHexString(171));
		System.out.println(Integer.toHexString(16).toUpperCase());
		System.out.println(Integer.toHexString(10).toUpperCase());
		System.out.println(Integer.toHexString(171).toUpperCase());
		System.out.println(Integer.toBinaryString(2));
		System.out.println(Integer.toBinaryString(24));
		System.out.println(Integer.toBinaryString(255));
	}
}
